/*
Author: Aria
Update: 2011/01/31
Author URI: http://goomelar.blogspot.com/
*/
function extractPageName(b){var a=b.split("/");return(a.length<2)?b:a[a.length-2].toLowerCase()+a[a.length-1].toLowerCase()}function setActiveMenu(a,c){for(var b=0;b<a.length;b++){if(extractPageName(a[b].href)==c){if(a[b].parentNode.tagName!="DIV"){a[b].className="current";a[b].parentNode.className="current"}}}}function setPage(){hrefString=document.location.href?document.location.href:document.location;if(document.getElementById("nav")!=null){setActiveMenu(document.getElementById("nav").getElementsByTagName("a"),extractPageName(hrefString))}};
